from django.contrib import admin
from .models import *
from django import forms


# Register your models here.

class ImageAdmin(admin.ModelAdmin):
    list_display = ["__str__", "title", "thumbnail"]

    def save_model(self, request, obj, form, change):
        obj.user = request.user
        obj.save()


admin.site.register(banner, ImageAdmin)

admin.site.register(tinker)

admin.site.register(active)

admin.site.register(job)


@admin.register(college)
class CollegeAdmin(admin.ModelAdmin):
    pass
